﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DA;

namespace BL
{
    public class CategoriesRepository
    {
        public IEnumerable<Category> GetList()
        {
            using (OrdersDeskEntities db = new OrdersDeskEntities())
            {
                try
                {
                    return db.Categories.ToList();
                }
                catch
                {
                    return Enumerable.Empty<Category>();
                }
            }
        }
    }
}
